From 72e4987ea302ec5c4465dff23aa002b312cc3046 Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Tue, 11 Oct 2005 10:33:31 +0100 Subject: [PATCH] Added missing global statement, to ensure that the logfilename variable is updated. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendLogging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/python/xen/xend/XendLogging.py b/tools/python/xen/xend/XendLogging.py index 9c78f92236..8e54d94bf1 100644 --- a/tools/python/xen/xend/XendLogging.py +++ b/tools/python/xen/xend/XendLogging.py @@ -49,6 +49,8 @@ def init(filename, level=logging.INFO, maxBytes=None, backupCount=None): stderr unless addLogStderr() is called. """ + global logfilename + def openFileHandler(fname): return logging.handlers.RotatingFileHandler(fname, mode='a', -- 2.30.2